<?php
namespace app\lib\resolution;
class Market
{

    public function getDetail($text)
    {
        $param = [
            "text" => $text

        ];


        $apiUrl = "https://apidatav2.chinaz.com/single/violate?key=e0bb6f31b855420298f327ba8e9c1492";

        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $apiUrl);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
        $output = curl_exec($ch);
        curl_close($ch);

        return $output;
    }



}